 <?php include _include(APP_PATH.'view/htm/header.inc.htm');?>

<!--{hook forum_start.htm}-->
<style>
	/*
	 * 为什么不使用bootstrap ? => 很吃藕
	 */
	/*
	ul,li{ list-style: none; padding:0; margin:0; }

	#list { background:#ddd; }
	#list li { line-height:50px;  }
	#list li img { border-radius: 50%; width:32px; height:32px; }
	#list li div { background:#666; }
	*/
	#side { list-style: none; background:#ddd; }
	#side li { height:240px; }

	#tag { list-style: none; margin:0; padding:0; }
	#tag li { padding:80px; background:#bbb; }
</style>
<div class="row">
	<!-- 内容栏 --> 
	<div class="col-lg-9 main">
		<ol class="breadcrumb d-none d-md-flex"><?php echo $tag['name']; ?></ol>
		<div class="card card-threadlist">
		<div class="card-body">
		<ul class="list-unstyled threadlist mb-0">
			<?php if($list) { foreach($list as $k) { ?>
			<?php $user = user_read_cache($k['uid']); ?>
			<li class="media thread tap" data-href="<?php echo url("thread-$k[tid]");?>" data-tid="<?php echo $k['tid'];?>">
				<a href="<?php echo url("user-$k[uid]");?>" tabindex="-1" class="ml-1 mt-1 mr-3">
					<img class="avatar-3" src="<?php echo $user['avatar_url'];?>">
				</a>
				<div class="media-body">
					<div class="subject break-all">
						<a href="<?php echo url("thread-$k[tid]");?>"><?php echo $k['subject'];?></a>
						<?php if($k['files'] > 0) { ?><i class="icon small filetype other"></i><?php } ?>
						<?php if($k['closed'] > 0) { ?><i class="icon-lock"></i><?php } ?>
					</div>
					<div class="d-flex justify-content-between small mt-1">
						<div>
							<span class="username text-grey mr-1 hidden-sm" uid="<?php echo $k['uid'];?>"><?php echo $user['username'];?></span>
							<span class="views text-grey mr-1 hidden-sm"><i class="icon-eye"></i><?php echo $k['views'];?></span>
						</div>
					</div>
				</div>
			</li>

			<?php }} else { ?>
			<li><div><?php echo lang('none');?></div></li>
			<?php } ?>
		</ul>
	</div>
	</div>
	</div>

	<!-- 侧边栏 -->
	<div class="col-lg-3 d-none d-lg-block aside">
		<!--
		<ul id="side">
			<li><p>假装是侧边栏</p></li>
		</ul>
		-->
		<!--{hook tag_side_after.htm}-->
	</div>
</div>


<script>
	// 导航仪 (先回收所有激活状态, 再使用取得的数据激活窗口)
	//$('#nav li').removeClass('active');
	//$('#nav li[fid="<?php echo 'tag';?>"]').addClass('active');

	// 这是jq之前, 执行需要等待文档加载完毕
</script>


<!--{hook forum_end.htm}-->
<?php include _include(APP_PATH.'view/htm/footer.inc.htm');?>
<!--{hook forum_js.htm}-->